﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FuturamaKassa.Objects {
   
    class Inventory {
        
        private int size;
        private bool wait;
        private List<string> products;

        private static Inventory instance;

        private Inventory() {

            size = 0;
            wait = false;
            products = new List<string>();
        }

        public static Inventory GetInstance() {
            lock (typeof(Inventory)) {
                if (instance == null) {
                    instance = new Inventory();
                }
                return instance;
            }
        }


        /**
         * Getter and setters
         * 
         */

        public int Size {
            get { return size; }
            set { size = value; }
        }

        public List<string> Products {
            get { return products; }
            set { products = value; }
        }

        public bool Wait {
            get { return wait; }
            set { wait = value; }
        }
    }
}
